package com.miao.serviceedu.controller;

import com.miao.utils.R;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/user")
@CrossOrigin
public class EduLoginController {

    @PostMapping("login")
    public R login(){



        return R.ok().data("SET_TOKEN","admin");
    }

    @GetMapping("info")
    public R info(){
        return R.ok().data("roles","[admin]").data("name","admin").data("avatar","[admin]");
    }
}
